package com.wangzhixuan.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.service.IService;
import com.wangzhixuan.commons.utils.PageInfo;
import com.wangzhixuan.model.User;
import com.wangzhixuan.model.vo.UserVo;

/**
 *
 * User 表数据服务层接口
 *
 */
public interface IUserService extends IService<User> {
	
	User getUserByPhone(String phone);
	
	List<Map<String, Object>> selectContacts();

    List<User> selectByLoginName(UserVo userVo);

    void insertByVo(UserVo userVo);

    UserVo selectVoById(Long id);

    void updateByVo(UserVo userVo);

    void updatePwdByUserId(Long userId, String md5Hex);

    void selectDataGrid(PageInfo pageInfo);

    void deleteUserById(Long id);
    
	Map<String, Object> selectUserById(Integer userId);
	
	Map<String,Object> slectUserDetl(Integer userId);
	
	List<Map<String,Object>> selectUserGroup( Integer userId);
	
	Integer selectByUserName(String userName);
	
	List<String> selectAllPhone();

}